package com.wantup.ext_proxy;

import com.wantup.service.OrderService;

import java.lang.reflect.Method;

public class $Proxy01 implements OrderService {

    private MyExtJdkInvocationHandler jdkInvocationHandler;

    public $Proxy01(MyExtJdkInvocationHandler jdkInvocationHandler) {
        this.jdkInvocationHandler = jdkInvocationHandler;
    }

    @Override
    public void order() throws Throwable {

        Method order = OrderService.class.getMethod("order", new Class[]{});

        this.jdkInvocationHandler.invoke(this,order,null);
    }
}
